import Vue from 'vue'
import VueResource from 'vue-resource'
import VueRouter from 'vue-router'
import Appointment from './myAppoint.vue'
import PendingItems from './pending.vue'
import ExpiredItmes from './expired.vue'
Vue.use(VueResource)
Vue.use(VueRouter)
import 'common/stylus/index.styl'
Vue.http.options.emulateJSON = true

const routes = [
	{ path: '/', redirect: '/pending' },
	{ path: '/pending', component: PendingItems },
	{ path: '/expired', component: ExpiredItmes }
]

const router = new VueRouter({
  	routes
})

/* eslint-disable no-new */
new Vue({
	router,
	el: '#appointment',
	template: '<Appointment/>',
  	components: { Appointment }
})
